<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>留言详情</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link href="css/screen.css" rel="stylesheet" type="text/css">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<script type="text/javascript" src="/sbm/ckeditor/ckeditor.js"></script>
<script language="javascript">
	function mycheck() { 
		if (myform.title.value == "") { 
			alert("留言标题不能为空！！");
			myform.title.focus();
			return false; 
		}
	}
</script>
</head>

<body>
	<s:form action="modifynote1" method="post"
		enctype="multipart/form-data" name="myform">
		<table width="600px" align="center" class="class1">
			<tr>
				<td colspan="3" align="center"><span class="title">修改笔记</span>
				</td>
			</tr>
			<tr>
				<td width="10%">&nbsp;</td>
				<td>
					<table>
						<tr>
							<td>笔记编号</td>
							<td><s:textfield name="note.noteid" /></td>
						<tr>
						<tr>
							<td>笔记名称</td>
							<td><s:hidden name="work.wpid"></s:hidden> <s:textfield
									name="note.title" id="title" />
							</td>
						<tr>
						<tr>
							<td>笔记内容</td>
							<td ><s:textarea name="note.text"  rows="15" width="120px" 
									maxlength="2097152" id="text" />
									<script type="text/javascript">
						CKEDITOR.replace('text');
						</script></td>
						</tr>
						<tr>
							<td colspan="2"><s:actionerror cssStyle="color:red" /> <s:fielderror
									cssStyle="color:red"></s:fielderror>
							</td>
						</tr>
						<tr>
							<td colspan="2"><input type="submit" value="确定"
								onClick="return mycheck();" />
							</td>
						</tr>
						<tr>
							<td colspan="2" align="right"><a href="showallnote1" >返回</a>
							</td>
						</tr>
					</table></td>
				<td width="30%">&nbsp;</td>
		</table>
	</s:form>
</body>
</html>
